package cn.tedu.psychology.web;

public enum ServiceCode {

    /**
     * 成功
     */
    OK(20000),
    /**
     * 错误：请求参数格式错误
     */
    ERR_BAD_REQUEST(40000),
    /**
     * 错误：数据不存在
     */
    ERR_NOT_FOUND(40400),
    /**
     * 数据冲突
     */
    ERR_CONFLICT(40900);

    private Integer value;

    ServiceCode(Integer value){
        this.value = value;
    }

    public Integer getValue(){
        return value;
    }

//    public static final Integer OK = 200;
//    public static final Integer ERR_NOT_FOUND = 404;
//    public static final Integer ERR_CONFLICT = 409;
}
